<%#
name: User - Registered Users
description: Report of registered users
snippet: false
template_inputs:
- name: Users filter
  required: false
  input_type: user
  description: Limit the report only on users found by this search query. Keep empty
    for report on all available users.
  advanced: false
  value_type: search
  resource_type: User
model: ReportTemplate
-%>
<%- load_users(search: input('Users filter'), includes: :auth_source).each_record do |user| -%>
<%-   report_row({
        'Login': user.login,
        'Firstname': user.firstname,
        'Lastname': user.lastname,
        'Email': user.mail,
        'Last Login': user.last_login_on,
        'Auth source': user_auth_source_name(user)
      }) -%>
<%- end -%>
<%= report_render -%>
